package BookTest;

public class C14Test {
    public static void main(String[] args) {
        C14Light a = new C14RedLightup();
        C14Light b = new C14YellowLightup();
        C14Light c = new C14GreenLightup();
        if(a instanceof C14RedLightup ){
            a.lightUp();
        }
        if(b instanceof C14YellowLightup){
            b.lightUp();
        }
        if(c instanceof C14GreenLightup){
            c.lightUp();
        }


    }
}
